<!DOCTYPE html>
<html>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page language="java" isELIgnored="false"%>

<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><spring:message code="app.title" htmlEscape="true"></spring:message>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/js/bootstrap/css/bootstrap.css"
	media="screen" />
<link rel="stylesheet" href="/static/css/census.css" media="screen" />
<style type="text/css">
#census-appcontainer {
	padding-top: 60px;
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}
</style>

<link rel="stylesheet"
	href="/static/js/bootstrap/css/bootstrap-responsive.css" media="screen" />

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
	      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

<script data-main="/static/js/init.js"
	src="/static/js/require-jquery.js"></script>
</head>
<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="/census"> <spring:message
						code="app.title" htmlEscape="true" /> </a>
				<ul class="nav">
					<c:if test="${not empty menus }">
						<c:forEach items="${menus }" var="menu">
							<li><a href="${menu.url}"> <spring:message
										code="${menu.label }" htmlEscape="true" /> </a>
							</li>
						</c:forEach>
					</c:if>
					<c:if test="${ permissions.admin }">
						<li><a href="/admin"> <spring:message code="menu.admin"
									htmlEscape="true" /> </a>
						</li>
					</c:if>
				</ul>
				<ul class="nav pull-right">
					<li class="active "><a href="${logout}"> <spring:message
								code="app.logout" htmlEscape="true" /> </a></li>
				</ul>
			</div>
		</div>
	</div>
	<div id="census-appcontainer" class="container-fluid">
		<tiles:insertAttribute name="body"></tiles:insertAttribute>
	</div>
</body>
<script type="text/javascript"
	src="/static/js/bootstrap/js/bootstrap.js"></script>
</html>